<div th:fragment="modal_shenbaoedit">
<div id="shenbaoModal" style="" class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-keyboard="false">
    <div class="modal-dialog modal-md" style="width:1000px;" id="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel"></h4>
            </div>
            <div class="modal-body" style="overflow: auto;" id="myModalBody">

                <form class="form-horizontal m" id="form-zhuanjiabiandongshenbao-edit" th:object="${zhuanjiabiandongshenbao}">
                    <!--变动申报-->
                    <div class="form-group">
                        <label class="col-sm-3 control-label">变动类型</label>
                        <div class="col-sm-8">
                            <select name="biandongleixing" th:with="type=${@dict.getType('sys_zhuanjiazhuangtai')}" v-model="biandong.biandongleixing" class="form-control" type="text">
                                <option value="">请选择</option>
                                <option value="1">取消享受政府特殊津贴资格</option>
                                <option value="2">未经组织同意出国半年以上不归</option>
                                <option value="3">未经原单位组织批准自动离职</option>
                                <option value="4">直接联系或通过亲属均无法联系</option>
                                <option value="5">其他原因停发津贴</option>
                                <option value="6">去世</option>
                                <option value="7">恢复发放津贴</option>
                                <option value="9">核增</option></select>
                        </div>
                    </div>
                    <!--专家,除了核增都要选择-->
                    <div class="form-group" v-if="biandong.biandongleixing!='9'">
                        <label class="col-sm-3 control-label">专家</label>
                        <div class="col-sm-4">
                            <select v-model="biandong.zhuanjiaid" name="zhuanjiaid" class="form-control">
                                <option v-for="zhuanjiaitem in zhuanjialist" :value="zhuanjiaitem.zhuanjiaid" v-text="zhuanjiaitem.xingming+'('+zhuanjiaitem.zhuangtai_text+')'"></option>
                            </select>
                        </div>
                        <div class="col-sm-3">
                            <input class="form-control" type="text" v-model="zhuanjianame" placeholder="请输入专家姓名">
                        </div>
                        <div class="col-sm-1">
                            <button type="button" class="btn btn-primary" @click="bindZhuanjiaList">搜索</button>
                        </div>
                    </div>
                    <!--1、取消享受政府特殊津贴资格-->
                    <div v-if="biandong.biandongleixing=='1'">
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">取消资格时间</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <input name="biandongshijian" class="form-control" placeholder="yyyy-MM-dd" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" v-model="biandong.biandongshijian" id="quxiao_biandongshijian" @blur="getDate_biandongshijian">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">取消资格原因</label>
                            <div class="col-sm-8">
                                <textarea style="height:100px" class="form-control" v-model="biandong.quxiao_yuanyin"></textarea>
                            </div>
                        </div>
                    </div>
                    <!--2、未经组织同意出国半年以上不归-->
                    <div v-if="biandong.biandongleixing=='2'">
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">确认出国半年以上不归时间</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <input name="biandongshijian" class="form-control" placeholder="yyyy-MM-dd" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" v-model="biandong.biandongshijian" id="chuguo_biandongshijian" @blur="getDate_biandongshijian">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">出国时间</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <input name="chuguoshijian" class="form-control" placeholder="yyyy-MM-dd" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" v-model="biandong.chuguo_chuguoshijian" id="chuguoshijian" @blur="getDate_biandongshijian">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--3、未经原单位组织批准自动离职-->
                    <div v-if="biandong.biandongleixing=='3'">
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">确认未经原单位组织批准自动离职时间</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <input name="biandongshijian" class="form-control" placeholder="yyyy-MM-dd" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" v-model="biandong.biandongshijian" id="lizhi_biandongshijian" @blur="getDate_biandongshijian">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">离职时间</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <input name="lizhishijian" class="form-control" placeholder="yyyy-MM-dd" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" v-model="biandong.lizhi_lizhishijian" id="lizhishijian" @blur="getDate_biandongshijian">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--4、直接联系或通过亲属均无法联系-->
                    <div v-if="biandong.biandongleixing=='4'">
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">失联时间</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <input name="biandongshijian" class="form-control" placeholder="yyyy-MM-dd" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" v-model="biandong.biandongshijian" id="shilian_biandongshijian" @blur="getDate_biandongshijian">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">失联原因</label>
                            <div class="col-sm-8">
                                <textarea style="height:100px" class="form-control" v-model="biandong.shilian_yuanyin"></textarea>
                            </div>
                        </div>
                    </div>
                    <!--5、其他原因停发津贴-->
                    <div v-if="biandong.biandongleixing=='5'">
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">停发津贴时间</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <input name="biandongshijian" class="form-control" placeholder="yyyy-MM-dd" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" v-model="biandong.biandongshijian" id="tingfa_biandongshijian" @blur="getDate_biandongshijian">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">停发津贴原因</label>
                            <div class="col-sm-8">
                                <textarea style="height:100px" class="form-control" v-model="biandong.tingfa_yuanyin"></textarea>
                            </div>
                        </div>
                    </div>
                    <!--6、去世-->
                    <div v-if="biandong.biandongleixing=='6'">
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">去世时间</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <input name="biandongshijian" class="form-control" placeholder="yyyy-MM-dd" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" v-model="biandong.biandongshijian" id="qushi_biandongshijian" @blur="getDate_biandongshijian">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--7、恢复发放津贴-->
                    <div v-if="biandong.biandongleixing=='7'||biandong.biandongleixing=='9'">
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">停发津贴类型</label>
                            <div class="col-sm-8">
                                <select name="tingfaleixing" th:with="type=${@dict.getType('sys_zhuanjiazhuangtai')}" v-model="biandong.huifu_tingfaleixing" class="form-control" type="text">
                                    <option value="">请选择</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">停发津贴时间</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <input name="tingfashijian" class="form-control" placeholder="yyyy-MM-dd" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" v-model="biandong.huifu_tingfashijian" id="tingfashijian" @blur="getDate_biandongshijian">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">停发津贴期间是否停发工资</label>
                            <div class="col-sm-8">
                                <input class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault1" v-model="biandong.huifu_shifoutingfagongzi" value="1">
                                <label class="form-check-label" for="flexRadioDefault1">
                                    是
                                </label>
                                <input class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault2" v-model="biandong.huifu_shifoutingfagongzi" value="0">
                                <label class="form-check-label" for="flexRadioDefault2">
                                    否
                                </label>
                            </div>
                        </div>
                        <div class="form-group" v-if="biandong.huifu_shifoutingfagongzi==1">
                            <label class="col-sm-3 control-label is-required">停发工资原因</label>
                            <div class="col-sm-8">
                                <textarea style="height:100px" class="form-control" v-model="biandong.huifu_tingfagongziyuanyin"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">停发津贴期间是否存在取消津贴发放资格的情形</label>
                            <div class="col-sm-8">
                                <input class="form-check-input" type="radio" name="flexRadioDefault2" id="flexRadioDefault3" v-model="biandong.huifu_shifouquxiaozige" value="1">
                                <label class="form-check-label" for="flexRadioDefault3">
                                    是
                                </label>
                                <input class="form-check-input" type="radio" name="flexRadioDefault2" id="flexRadioDefault4" v-model="biandong.huifu_shifouquxiaozige" value="0">
                                <label class="form-check-label" for="flexRadioDefault4">
                                    否
                                </label>
                            </div>
                        </div>
                        <div class="form-group" v-if="biandong.huifu_shifouquxiaozige==1">
                            <label class="col-sm-3 control-label is-required">取消资格原因</label>
                            <div class="col-sm-8">
                                <textarea style="height:100px" class="form-control" v-model="biandong.huifu_quxiaozigeyuanyin"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">恢复发放津贴时间</label>
                            <div class="col-sm-8">
                                <div class="input-group date">
                                    <input name="biandongshijian" class="form-control" placeholder="yyyy-MM-dd" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" v-model="biandong.biandongshijian" id="huifu_biandongshijian" @blur="getDate_biandongshijian">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label is-required">恢复发放津贴原因</label>
                            <div class="col-sm-8">
                                <textarea style="height:100px" class="form-control" v-model="biandong.huifu_yuanyin"></textarea>
                            </div>
                        </div>
                    </div>
                    <!--8、人事关系转出-->

                    <!--9、核增-->
                    <div v-if="biandong.biandongleixing=='9'" style="border-top: #1a1a1a">
                        <div class="form-group">
                            <label class="col-sm-2 control-label is-required">姓名</label>
                            <div class="col-sm-4">
                                <input class="form-control" type="text" v-model="biandong.xingming" placeholder="请输入专家姓名">
                            </div>
                            <label class="col-sm-2 control-label is-required">性别</label>
                            <div class="col-sm-4">
                                <select name="xingbie" th:with="type=${@dict.getType('sys_user_sex')}" v-model="biandong.xingbie" class="form-control" type="text">
                                    <option value="">请选择</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label is-required">出生日期</label>
                            <div class="col-sm-4">
                                <div class="input-group date">
                                    <input name="chushengriqi" class="form-control" placeholder="yyyy-MM-dd" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" v-model="biandong.chushengriqi" id="chushengriqi" @blur="getDate_biandongshijian">
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                            <label class="col-sm-2 control-label is-required">国籍</label>
                            <div class="col-sm-4">
                                <select name="guoji" th:with="type=${@dict.getType('sys_guojiahuodiqu')}" v-model="biandong.guoji" class="form-control" type="text">
                                    <option value="">请选择</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label is-required">证件类型</label>
                            <div class="col-sm-4">
                                <select name="zhengjianleixing" th:with="type=${@dict.getType('sys_zhengjianleixing')}" v-model="biandong.zhengjianleixing" class="form-control" type="text">
                                    <option value="">请选择</option>
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                                </select>
                            </div>
                            <label class="col-sm-2 control-label is-required">证件号码</label>
                            <div class="col-sm-4">
                                <input class="form-control" type="text" v-model="biandong.zhengjianhaoma" placeholder="请输入证件号码">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label is-required">特贴单位</label>
                            <div class="col-sm-10">
                                <input class="form-control" type="text" v-model="deptname" readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label is-required">手机</label>
                            <div class="col-sm-10">
                                <input class="form-control" type="text" v-model="biandong.shoujihaoma" placeholder="请输入手机号码">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label is-required">入选享受政府特殊津贴专家年份</label>
                            <div class="col-sm-10">
                                <div class="input-group date">
                                    <select name="ruxuannianfen" class="form-control" placeholder="yyyy" v-model="biandong.ruxuannianfen" id="ruxuannianfen" @blur="getDate_biandongshijian" >
                                        <option value="">--请选择--</option>
                                        <option value="1990">1990</option>
                                        <option value="1991">1991</option>
                                        <option value="1992">1992</option>
                                        <option value="1993">1993</option>
                                        <option value="1994">1994</option>
                                    </select>
<!--                                    <input name="ruxuannianfen" class="form-control" placeholder="yyyy" onclick="WdatePicker({dateFmt:'yyyy'})" v-model="biandong.ruxuannianfen" id="ruxuannianfen" @blur="getDate_biandongshijian">-->
                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label is-required">联系人1</label>
                            <div class="col-sm-2">
                                <input class="form-control" type="text" v-model="biandong.lianxiren1" placeholder="请输入联系人姓名">
                            </div>
                            <label class="col-sm-2 control-label is-required">联系电话</label>
                            <div class="col-sm-2">
                                <input class="form-control" type="text" v-model="biandong.lianxidianhua1" placeholder="请输入联系电话">
                            </div>
                            <label class="col-sm-2 control-label is-required">与专家关系</label>
                            <div class="col-sm-2">
                                <input class="form-control" type="text" v-model="biandong.guanxi1" placeholder="请输入与专家关系">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">联系人2</label>
                            <div class="col-sm-2">
                                <input class="form-control" type="text" v-model="biandong.lianxiren2" placeholder="请输入联系人姓名">
                            </div>
                            <label class="col-sm-2 control-label">联系电话</label>
                            <div class="col-sm-2">
                                <input class="form-control" type="text" v-model="biandong.lianxidianhua2" placeholder="请输入联系电话">
                            </div>
                            <label class="col-sm-2 control-label">与专家关系</label>
                            <div class="col-sm-2">
                                <input class="form-control" type="text" v-model="biandong.guanxi2" placeholder="请输入与专家关系">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">联系人3</label>
                            <div class="col-sm-2">
                                <input class="form-control" type="text" v-model="biandong.lianxiren3" placeholder="请输入联系人姓名">
                            </div>
                            <label class="col-sm-2 control-label">联系电话</label>
                            <div class="col-sm-2">
                                <input class="form-control" type="text" v-model="biandong.lianxidianhua3" placeholder="请输入联系电话">
                            </div>
                            <label class="col-sm-2 control-label">与专家关系</label>
                            <div class="col-sm-2">
                                <input class="form-control" type="text" v-model="biandong.guanxi3" placeholder="请输入与专家关系">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label is-required">银行名称</label>
                            <div class="col-sm-2">
                                <input class="form-control" type="text" v-model="biandong.yinhangmingcheng" placeholder="请输入银行名称">
                            </div>
                            <label class="col-sm-2 control-label is-required">银行卡号</label>
                            <div class="col-sm-2">
                                <input class="form-control" type="text" v-model="biandong.yinhangkahao" placeholder="请输入银行卡号">
                            </div>
                            <label class="col-sm-2 control-label is-required">联行号</label>
                            <div class="col-sm-2">
                                <input class="form-control" type="text" v-model="biandong.lianhanghao"  placeholder="请输入联行号">
                            </div>
                        </div>
                    </div>
                    <div class="form-group" v-if="isqushishow">
                        <label class="col-sm-8 control-label" style="color: #ff0000">以上信息是否属实，如属实请确认提交，如不属实请重新选择变动类型。</label>
                    </div>

                    <!--上传附件-->
                    <div class="form-group">
                        <label class="col-sm-3 control-label">请上传相关佐证材料</label>
                        <div class="col-sm-6">
                            <input type="text" class="form-control" id="fujianurl" :placeholder="biandong.url">
                            <div id="filelist" v-text="biandong.wenjianming"></div>
                            <div id="UploadedFiles"></div>
                        </div>
                        <div class="col-sm-2">
                            <div id="container">
                                <input class="form-control btn-primary btn btn-md" type="button" id="pickfiles" value="上传" />
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label"></label>
                        <div class="col-sm-8">
                            <label style="color: #ff0000">如材料较多，可只上传关键材料或关键信息，其他材料线下报送。</label>
                        </div>
                    </div>


                </form>

            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" @click="add" v-if="editflag==1">保存</button>
                <button type="button" class="btn btn-primary" @click="modify" v-if="editflag==2">保存</button>
            </div>
        </div>
    </div>
</div>
</div>